﻿Imports BusinessLogicLayer

Partial Class MantPaises
    Inherits System.Web.UI.Page
    Dim errores As String


    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        'Instanciamos la clase PaisBL
        Dim capanegocios As New PaisBL

        Try
            gvpaises.DataSource = capanegocios.ListarPaises
            gvpaises.DataBind()

        Catch ex As Exception

            errores = capanegocios.ChapaError
            'Redirigimos  a la página Errores.aspx para mostrar el error
            Response.Redirect("Errores.aspx?id=" & errores)

        Finally
            capanegocios = Nothing
        End Try

    End Sub
End Class
